import React from 'react';
import { Table, Icon } from 'antd';

let width = document.querySelector('body').offsetWidth;
const List = ({ listProps }) => {  

  return (
    
    <div>
         {
        width >1349 ?
        <Table
        {...listProps}
        className='home-table-list'
        pagination={false}
        // simple
        rowKey={(record,index) => index}

        /> 
        :
        <Table
        {...listProps}
        className='home-table-list'
        pagination={false}
        scroll={{x:1100}}
        // simple
        rowKey={(record,index) => index}

        /> 
       }
    </div>
  );
};
export default List;
